package com.zking.ssm.sys.service;

import com.zking.ssm.sys.model.RoleMenu;
import com.zking.ssm.util.PageBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IRoleMenuService {

    int deleteByPrimaryKey(Long id);

    int insert(RoleMenu record);

    int insertSelective(RoleMenu record);

    @Transactional(readOnly = true)
    RoleMenu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoleMenu record);

    int updateByPrimaryKey(RoleMenu record);

    @Transactional(readOnly = true)
    List<RoleMenu> list(RoleMenu roleMenu, PageBean pageBean);

}
